/**
 * @author Bartosz Wozniak (bdw10)
 * @author Jonathon Marks (jm1510)
 * @author Deyan Ulevinov (du210)
 * @author Piotr Bar (pb2510)
 * @author Rudy Benfredj (rb2610)
 */

package extractor;

import java.io.Serializable;
import java.sql.Timestamp;
import java.util.HashMap;

/**
 * This class represents the Serializable object that is sent across by the
 * extractor to all the subscribers.
 */
public class StatusData implements Serializable {

	private static final long serialVersionUID = 7634513474056741381L;

	// Represents the global type of data we store (e.g. cpu, memory, etc.)
	private String type;
	// Holds the time the data has been extracted
	private Timestamp time;
	// Holds a key-value map of data fields
	private HashMap<String, String> data;

	public StatusData(String type, Timestamp time, HashMap<String, String> data) {
		this.type = type;
		this.time = time;
		this.data = data;
	}

	public String getType() {
		return type;
	}

	public HashMap<String, String> getData() {
		return data;
	}

	public Timestamp getTime() {
		return time;
	}

}
